#pragma once

#include "../server/db.h"
#include "./manager.h"
#include "../util/lutils.h"

namespace lukv {

class worker {
private:
    int id;
    int sock;
    sockaddr_in * paddr;
private:
    db base;
public:
    explicit worker(int _id);
public:
    int start();
    std::string handle_cmd(const std::string &);
};

}
